// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity;

import android.view.MotionEvent;
import android.view.View;
import android.widget.RatingBar;

// Referenced classes of package com.nnee.p_pr.p_activity:
//            SubsInfoActivity

class cls_dq
    implements android.view.View.OnTouchListener
{

	cls_dq(SubsInfoActivity subsinfoactivity)
    {
        a = subsinfoactivity;
        super();
    }

    public boolean onTouch(View view, MotionEvent motionevent)
    {
        int i = view.getLeft();
        int j = view.getRight();
        float f = (5F * (motionevent.getRawX() - (float)i)) / (float)(j - i);
        if(cls_SubsInfoActivity.h(a) != null)
            cls_SubsInfoActivity.h(a).setRating(f);
        return true;
    }

    final SubsInfoActivity a;
}
